// Created by zyq on 2025/3/30.
#include "iostream"
using namespace std;

enum Color{
    RED,
    BLUE,
    GREEN
};

enum Direction{
    UP,
    DOWN,
    LEFT,
    RIGHT
};
int main(){

    Color myColor = RED;
    Color myColorIndex = BLUE;
//    if (myColor == RED){
//        cout << "当前颜色是红色" << endl;
//    }

//    if (myColorIndex == 1){
//        cout << "当前颜色是蓝色" << endl;
//    }

Direction direction = LEFT;
    switch (direction) {
        case Direction::UP:
            cout << "向上" << endl;
            break;
        case Direction::DOWN:
            cout << "向下" << endl;
            break;
        case Direction::LEFT:
            cout << "向左" << endl;
            break;
        case Direction::RIGHT:
            cout << "向右" << endl;
            break;
        default:
            cout << "无效" << endl;
    }

    return 0;

}